Skip to main content
Version: 2.x.x

CacheStorageType


import { CacheStorageType } from "@hyper-fetch/core"

Description

Defined in cache/cache.types.ts:49

Preview

type CacheStorageType = {
clear: () => void;
delete: (key: string) => void;
get: <Response,Error>(key: string) => CacheValueType<Response, Error> | undefined;
keys: () => string[] | IterableIterator<string> | string[];
set: <Response,Error>(key: string, data: CacheValueType<Response, Error>) => void;
}

Structure

{
clear: () => void;
delete: (key: string) => void;
get: (key: string) => CacheValueType<Response, Error> | undefined;
keys: () => string[] | IterableIterator<string> | string[];
set: (key: string, data: CacheValueType<Response, Error>) => void;
}